package com.es.hr.empQuit;

import javax.servlet.http.HttpServletRequest;

import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class EmpQuitDoAction extends ActionSupport implements ServletRequestAware{

	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	public String execute()throws Exception
	{
		String emp_id = request.getParameter("emp_id").trim();
		String lizhi_result = request.getParameter("lizhi_result").trim();
		EmpQuitBiz biz = new EmpQuitBiz();
	   boolean bool = biz.empQuitDo(emp_id,lizhi_result);
	   if(bool)
		   request.setAttribute("message", "人员离职操作成功！");
	   else
		   request.setAttribute("message", "人员离职操作产生错误，请重新操作！");
	   return "success";
	}

	public void setServletRequest(HttpServletRequest request) {
	     this.request = request;
	}
}
